<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head> 
<title>Upload Sequence</title>
<script src="http://yui.yahooapis.com/3.8.0/build/yui/yui-min.js"></script>
<script type="text/javascript" src="./js/yui-func.js"></script>		
</head>
<body class="yui3-skin-sam">
<center><h1>Master Genome Tracking System</h1></center>
<p>
welcome, <s:property value="userName"/> ! [<a href="logout">logout</a>]
</p>
<div id="productsandservices" class="yui3-menu yui3-menu-horizontal yui3-menubuttonnav"><!-- Bounding box -->
    <div class="yui3-menu-content"><!-- Content box -->
        <ul>
            <li class="yui3-menuitem"><a class="yui3-menuitem-content" href="Notebook.action">Notebook</a></li>
            <li class="yui3-menuitem"><a class="yui3-menuitem-content" href="History.action">History</a></li>
            <li><a class="yui3-menu-label" href="Sequence.action"><em>Primer</em></a>
                <div id="submenu-1" class="yui3-menu">
                    <div class="yui3-menu-content">
                        <ul>
                        	<li class="yui3-menuitem"><a class="yui3-menuitem-content" href="Sequence.action">Upload Primer</a></li>
                        	<li class="yui3-menuitem"><a class="yui3-menuitem-content" href="PrimerInsert.action">Add Primer</a></li>
                        	<li class="yui3-menuitem"><a class="yui3-menuitem-content" href="PrimerDelete">Delete Primer</a></li>
                        </ul>
                    </div>
                </div>
             </li>
            <li><a class="yui3-menu-label" href="ImageUpload"><em>Image</em></a>
                <div id="submenu-1" class="yui3-menu">
                    <div class="yui3-menu-content">
                        <ul>
                        	<li class="yui3-menuitem"><a class="yui3-menuitem-content" href="ImageUpload">Upload Image</a></li>
                        	<li class="yui3-menuitem"><a class="yui3-menuitem-content" href="ImageDelete">Delete Image</a></li>
                        </ul>
                    </div>
                </div>
             </li>
            <li class="yui3-menuitem"><a class="yui3-menuitem-content" href="#">Users</a></li>
        </ul>
    </div>
</div>
<p></p>
<center>
<table>
	<tr>
		<td><h3>Sequence File Upload</h3></td>
	</tr>
</table>
<s:form action="uploadseq" method="post" enctype="multipart/form-data">
<table>
	<tr><td><s:file name="myFile" label="Sequence File" value = "11"/></td></tr>
	<tr><td>
	<s:submit value="Upload" />
	</td></tr>
</table>
</s:form>

<s:if test="%{result == 'errorInfo'}">
    <div><font color="red">Please choose a valid CSV file (less than 5M)</font></div>
</s:if>

<table bgcolor="DBF3FF" width="50%">
	<tr><td align="center"><h5>Please choose file with .csv format; to generate .csv file, open excel, select save as .csv, then click save</h5></td></tr>
</table>

</center>
</body>	
</html>